<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<input type="button" value="按钮" onclick="f1()">
<script>

  function f1(){
    console.log("函数")
  }
  f1()
  function f2(name,age){
    console.log(name+":"+age)
  }
  f2("shangye",12)
  function f3(){
    return "这是返回值";
  }
  let info = f3()
  console.log(info)
  function f4(name,age){
    return "亲爱的"
  }
  let rseult = f4("shenrui",22)
  console.log(rseult)
  let f5 = function (name,age){
    console.log(name+":"+age)
  }
  f5("qingxie",22)

  let f6 = new Function("name","age","console.log(name+':' +age )");
  f6("关羽",20)
</script>
</body>
</html>